<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>上海建桥学院</title>

    <!-- Global stylesheets -->
    <link href="/static/assets/css/icons/icomoon/styles.css" rel="stylesheet" type="text/css">
    <link href="/static/assets/css/minified/bootstrap.min.css" rel="stylesheet" type="text/css">
    <link href="/static/assets/css/minified/core.min.css" rel="stylesheet" type="text/css">
    <link href="/static/assets/css/minified/components.min.css" rel="stylesheet" type="text/css">
    <link href="/static/assets/css/minified/colors.min.css" rel="stylesheet" type="text/css">
    <!-- /global stylesheets -->

    <!-- Core JS files -->
    <script type="text/javascript" src="/static/assets/js/plugins/loaders/pace.min.js"></script>
    <script type="text/javascript" src="/static/assets/js/core/libraries/jquery.min.js"></script>
    <script type="text/javascript" src="/static/assets/js/core/libraries/bootstrap.min.js"></script>
    <script type="text/javascript" src="/static/assets/js/plugins/loaders/blockui.min.js"></script>
    <!-- /core JS files -->


    <!-- /theme JS files -->
    <script src="http://static.runoob.com/assets/jquery-validation-1.14.0/dist/jquery.validate.min.js"></script>
    <script src="http://static.runoob.com/assets/jquery-validation-1.14.0/dist/localization/messages_zh.js"></script>
    <style>
        .error, .validation-valid-label {
            margin-top: 7px;
            margin-bottom: 7px;
            display: block;
            color: #f44336;
            position: relative;
            padding-left: 26px;
        }
    </style>
</head>

<body>

<!-- Main navbar -->
<div class="navbar navbar-inverse">
    <div class="navbar-header">
        <a class="navbar-brand" href="index.ftl"><img src="/static/assets/images/logo_light.png" alt=""></a>

        <ul class="nav navbar-nav pull-right visible-xs-block">
            <li><a data-toggle="collapse" data-target="#navbar-mobile"><i class="icon-tree5"></i></a></li>
        </ul>
    </div>

    <div class="navbar-collapse collapse" id="navbar-mobile">
        <ul class="nav navbar-nav navbar-right">
            <li>
                <a href="add.ftl#">
                    <i class="icon-display4"></i> <span class="visible-xs-inline-block position-right"> Go to website</span>
                </a>
            </li>

            <li>
                <a href="add.ftl#">
                    <i class="icon-user-tie"></i> <span class="visible-xs-inline-block position-right"> Contact admin</span>
                </a>
            </li>

            <li class="dropdown">
                <a class="dropdown-toggle" data-toggle="dropdown">
                    <i class="icon-cog3"></i>
                    <span class="visible-xs-inline-block position-right"> Options</span>
                </a>
            </li>
        </ul>
    </div>
</div>
<!-- /main navbar -->


<!-- Page container -->
<div class="page-container login-container">

    <!-- Page content -->
    <div class="page-content">

        <!-- Main content -->
        <div class="content-wrapper">

            <!-- Content area -->
            <div class="content">

                <!-- Registration form -->
                <form action="/meeting/update" method="post" id="myForm">
                    <div class="row">
                        <div class="col-lg-6 col-lg-offset-3">
                            <div class="panel registration-form">
                                <div class="panel-body">

                                    <div class="text-center">
                                        <div class="icon-object border-success text-success">
                                            <i class="icon-home"></i></div>
                                        <h5 class="content-group-lg">会议信息</h5>
                                    </div>


                                    <div class="form-group has-feedback">
                                        <input type="text" class="form-control" value="${meeting.title!''}" id="title" name="title" minlength="4" placeholder="会议主题" required />
                                        <div class="form-control-feedback">
                                            <i class="icon-user-plus text-muted"></i>
                                        </div>
                                    </div>

                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group has-feedback">
                                                <input type="text" class="form-control" value="${meeting.people!''}" id="people" name="people" placeholder="出席人" required>
                                                <div class="form-control-feedback">
                                                    <i class="icon-user-check text-muted"></i>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="col-md-6">
                                            <div class="form-group has-feedback">
                                                <input type="text" class="form-control" id="startTimeText" name="startTimeText"  placeholder="开始时间">
                                                <div class="form-control-feedback">
                                                    <i class="icon-user-check text-muted"></i>
                                                </div>
                                            </div>
                                        </div>
                                    </div>


                                    <div class="row">
                                        <div class="col-md-10">
                                            <div class="form-group has-feedback">
                                                <textarea class="form-control"  id="remark" name="remark" placeholder="会议内容1" >${meeting.remark!''}</textarea>
                                            </div>
                                        </div>


                                    </div>

                                    <input type="hidden"  id="error_msg" value="${error_info!''}" />
                                    <input type="hidden"  id="suc" value="${suc!''}" />
                                    <div class="text-right">
										<input type="hidden" name="id" value="${meeting.id}" />
                                        <button type="submit" class="btn bg-teal-400 btn-labeled btn-labeled-right ml-10"><b><i class="icon-plus3"></i></b>编辑会议</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
                <!-- /registration form -->


                <!-- Footer -->
			<#include '../app/footer.ftl'/>
                <!-- /footer -->

            </div>
            <!-- /content area -->

        </div>
        <!-- /main content -->

    </div>
    <!-- /page content -->

</div>
<!-- /page container -->
<script type="text/javascript">

    $(function(){

        var error_msg = $("#error_msg").val();
        if(error_msg != ''){
            alert(error_msg);
        }
        var suc = $("#suc").val();
        if(suc != ''){
            window.location.href='/meeting/list';
        }



    });
</script>
</body>
</html>
